package com.party.orders.service;


import com.party.domain.Coupon;
import com.party.dto.Page;

/**
 * 
 * @author Caizhf
 * @date 2017年7月28日下午4:19:38
 * @version v.0.1
 * @email 1115054416@qq.com 
 *
 * <p>Description: </p>
 *
 */
public interface CouponService {
	
	final int NOT_USE = 0;
	final int USED = 1;
	final int OUT_DATE = 2;
	

	void save(Coupon coupon);

	void deleteById(int cpid);

	void update(Coupon coupon);

	Coupon findById(int cpid);

	Page list(int pageNum, int pageSize, String key, Integer userId, Boolean isOverdue);

}
